package info.yuehui.bigdatalimittest.mapper;

import info.yuehui.bigdatalimittest.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    /**
     * insert
     *
     * @param user user
     */
    void insertOne(@Param("user") User user);

    /**
     * 普通分页查询
     *
     * @return list
     */
    List<User> normalLimit();

    /**
     * 优化分页查询
     *
     * @return list
     */
    List<User> optimizationLimit();

}